export function logo(){
	let token= uni.getStorageSync('token');
	console.log(token)
	   if (token) {
			return true 
					
	   } else {
			//不存在则跳转至登录页
			uni.showModal({
				title: '提示',
				content: '请先登录',
				success:(res)=> {
					if (res.confirm) {
						uni.switchTab({
							 url: "/pages/index/index",
						})
					} else if (res.cancel) {
						console.log('用户点击取消');
					}
				}
			});
	       
	   }
}